Skip to main content

Browse For Folder

AutomatR.DefaultActivities.FileAndFolder.BrowseForFolder

The "Browse For Folder" activity in AutomatR triggers a runtime dialog box that enables the selection of a folder for subsequent utilization within the workflow. This activity is particularly useful when user input is required to dynamically determine the folder path during workflow execution.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Browse For Folder" activity. This can be useful for handling synchronization issues. Integer variable or argument containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
Select FolderOutputs the full path of the selected folder. String variable or argument to store the selected folder path. If no folder is selected or the dialog is canceled, an empty string is returned.

How to use:

  1. Drag and drop the "Browse For Folder" activity onto the workflow.
  2. Optionally, configure the delay and customize the display name.
  3. Execute the workflow, and during runtime, the dialog will appear for the user to browse and select a folder.

Example: Consider an example where the "Browse For Folder" activity is used to allow the user to select a destination folder for copying files:

Browse For Folder:
Display Name: "Select Destination Folder"
Select Folder: selectedFolderPath

In this example, the activity opens a dialog box, allowing the user to browse and select a destination folder. The selected folder path is stored in the string variable "selectedFolderPath" for further use in the workflow. If the user cancels the dialog, the output variable will contain an empty string.